<template>
	<view>
		<view class="wraps-views">
			<view class="nav-img" v-for="(item,index) in views" :key="index">
				<image :src="item.img"></image>
				<text>{{item.txt}}</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default{
		data(){
			return{
				views:[
					{
						"img":"../../../static/tabsimage/play.png",
						"txt":"机票"
					},
					{
						"img":"../../../static/tabsimage/holite.png",
						"txt":"酒店"
					},
					{
						"img":"../../../static/tabsimage/huoche.png",
						"txt":"火车票"
					},
					{
						"img":"../../../static/tabsimage/car.png",
						"txt":"汽车票"
					},
					{
						"img":"../../../static/tabsimage/menpiao.png",
						"txt":"门票"
					}
				]
			}
		}
	}
</script>

<style lang="scss">
	.wraps-views{
		margin: 30upx 0 30upx 0;
		display: flex;
		justify-content: space-around;
		.nav-img{
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
		}
		.nav-img image{
			width: 100upx;
			height: 100upx;
		}
		.nav-img img{
			width: 100upx;
			height: 100upx;
		}
	}
</style>
